home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / zhpgv.z / zhpgv
Encoding:
Text File  |  2002-10-03  |  5.8 KB  |  199 lines

  1.  
  2.  
  3.  
  4. ZZZZHHHHPPPPGGGGVVVV((((3333SSSS))))                                                            ZZZZHHHHPPPPGGGGVVVV((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ZHPGV - compute all the eigenvalues and, optionally, the eigenvectors of
  10.      a complex generalized Hermitian-definite eigenproblem, of the form
  11.      A*x=(lambda)*B*x, A*Bx=(lambda)*x, or B*A*x=(lambda)*x
  12.  
  13. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  14.      SUBROUTINE ZHPGV( ITYPE, JOBZ, UPLO, N, AP, BP, W, Z, LDZ, WORK, RWORK,
  15.                        INFO )
  16.  
  17.          CHARACTER     JOBZ, UPLO
  18.  
  19.          INTEGER       INFO, ITYPE, LDZ, N
  20.  
  21.          DOUBLE        PRECISION RWORK( * ), W( * )
  22.  
  23.          COMPLEX*16    AP( * ), BP( * ), WORK( * ), Z( LDZ, * )
  24.  
  25. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  26.      These routines are part of the SCSL Scientific Library and can be loaded
  27.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  28.      directs the linker to use the multi-processor version of the library.
  29.  
  30.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  31.      4 bytes (32 bits). Another version of SCSL is available in which integers
  32.      are 8 bytes (64 bits).  This version allows the user access to larger
  33.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  34.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  35.      only one of the two versions; 4-byte integer and 8-byte integer library
  36.      calls cannot be mixed.
  37.  
  38. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  39.      ZHPGV computes all the eigenvalues and, optionally, the eigenvectors of a
  40.      complex generalized Hermitian-definite eigenproblem, of the form
  41.      A*x=(lambda)*B*x, A*Bx=(lambda)*x, or B*A*x=(lambda)*x. Here A and B are
  42.      assumed to be Hermitian, stored in packed format, and B is also positive
  43.      definite.
  44.  
  45.  
  46. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  47.      ITYPE   (input) INTEGER
  48.              Specifies the problem type to be solved:
  49.              = 1:  A*x = (lambda)*B*x
  50.              = 2:  A*B*x = (lambda)*x
  51.              = 3:  B*A*x = (lambda)*x
  52.  
  53.      JOBZ    (input) CHARACTER*1
  54.              = 'N':  Compute eigenvalues only;
  55.              = 'V':  Compute eigenvalues and eigenvectors.
  56.  
  57.      UPLO    (input) CHARACTER*1
  58.              = 'U':  Upper triangles of A and B are stored;
  59.              = 'L':  Lower triangles of A and B are stored.
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ZZZZHHHHPPPPGGGGVVVV((((3333SSSS))))                                                            ZZZZHHHHPPPPGGGGVVVV((((3333SSSS))))
  71.  
  72.  
  73.  
  74.      N       (input) INTEGER
  75.              The order of the matrices A and B.  N >= 0.
  76.  
  77.      AP      (input/output) COMPLEX*16 array, dimension (N*(N+1)/2)
  78.              On entry, the upper or lower triangle of the Hermitian matrix A,
  79.              packed columnwise in a linear array.  The j-th column of A is
  80.              stored in the array AP as follows:  if UPLO = 'U', AP(i + (j-
  81.              1)*j/2) = A(i,j) for 1<=i<=j; if UPLO = 'L', AP(i + (j-1)*(2*n-
  82.              j)/2) = A(i,j) for j<=i<=n.
  83.  
  84.              On exit, the contents of AP are destroyed.
  85.  
  86.      BP      (input/output) COMPLEX*16 array, dimension (N*(N+1)/2)
  87.              On entry, the upper or lower triangle of the Hermitian matrix B,
  88.              packed columnwise in a linear array.  The j-th column of B is
  89.              stored in the array BP as follows:  if UPLO = 'U', BP(i + (j-
  90.              1)*j/2) = B(i,j) for 1<=i<=j; if UPLO = 'L', BP(i + (j-1)*(2*n-
  91.              j)/2) = B(i,j) for j<=i<=n.
  92.  
  93.              On exit, the triangular factor U or L from the Cholesky
  94.              factorization B = U**H*U or B = L*L**H, in the same storage
  95.              format as B.
  96.  
  97.      W       (output) DOUBLE PRECISION array, dimension (N)
  98.              If INFO = 0, the eigenvalues in ascending order.
  99.  
  100.      Z       (output) COMPLEX*16 array, dimension (LDZ, N)
  101.              If JOBZ = 'V', then if INFO = 0, Z contains the matrix Z of
  102.              eigenvectors.  The eigenvectors are normalized as follows:  if
  103.              ITYPE = 1 or 2, Z**H*B*Z = I; if ITYPE = 3, Z**H*inv(B)*Z = I.
  104.              If JOBZ = 'N', then Z is not referenced.
  105.  
  106.      LDZ     (input) INTEGER
  107.              The leading dimension of the array Z.  LDZ >= 1, and if JOBZ =
  108.              'V', LDZ >= max(1,N).
  109.  
  110.      WORK    (workspace) COMPLEX*16 array, dimension (max(1, 2*N-1))
  111.  
  112.      RWORK   (workspace) DOUBLE PRECISION array, dimension (max(1, 3*N-2))
  113.  
  114.      INFO    (output) INTEGER
  115.              = 0:  successful exit
  116.              < 0:  if INFO = -i, the i-th argument had an illegal value
  117.              > 0:  ZPPTRF or ZHPEV returned an error code:
  118.              <= N:  if INFO = i, ZHPEV failed to converge; i off-diagonal
  119.              elements of an intermediate tridiagonal form did not convergeto
  120.              zero; > N:   if INFO = N + i, for 1 <= i <= n, then the leading
  121.              minor of order i of B is not positive definite.  The
  122.              factorization of B could not be completed and no eigenvalues or
  123.              eigenvectors were computed.
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. ZZZZHHHHPPPPGGGGVVVV((((3333SSSS))))                                                            ZZZZHHHHPPPPGGGGVVVV((((3333SSSS))))
  137.  
  138.  
  139.  
  140. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  141.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  142.  
  143.      This man page is available only online.
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.